package com.onstar.cn.weight.ptr;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.HorizontalScrollView;

/**
 * Created by Rengui Lu on 2016/9/19.
 */
public class MyHorizontalScrollView  extends HorizontalScrollView{
    private FixedHVConflict mFixedHVConflict;

    public MyHorizontalScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }
    public MyHorizontalScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }
    public MyHorizontalScrollView(Context context) {
        super(context);
        init();
    }

    public void init(){
        mFixedHVConflict = new FixedHVConflict(this);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        mFixedHVConflict.dispatchTouchEvent(ev);
        return super.dispatchTouchEvent(ev);
    }



}
